package com.parfinex.java.phase1.module2.task07;
//
public class StudentTest {
    public static void main(String[] args){
        //1.声明一个Student类型的引用指向Student类型的对
        Student s1 =new Student();
        s1.setId(-1001);// =-1001;
        s1.setName("lijiahui");//name ="lijiahui";
        s1.show();
        //3.使用有参方式构造对象并打印特征
        //System.out.println("我是"+getName()+",我的学号是"+getId());
        Student s2 =new Student(-1001,"张飞");
        s2.show();
    }
}
